/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package homework.demo3;

import java.util.Vector;

/**
 *
 * @author Administrator
 */
public class VectorDemo {
    
    public static void main(String[] args) {
        
      Vector v = new Vector();
      
      v.add("第一");
      v.add(new Integer(1));
      v.add(new Double(1.1));
      
      v.add("第二");
      v.add(new Integer(2));
      v.add(new Double(2.2));
      
      v.add("第三");
      v.add(new Integer(3));
      v.add(new Double(3.3));
      
      v.add("第四");
      v.add(new Integer(4));
      v.add(new Double(4.4));
      
        System.out.println("Vector容器的内容是：");
        System.out.println(v);
        
        System.out.println("v容器的容量是：");
        System.out.println(v.capacity());
        System.out.println("v中的元素的个数：");
        System.out.println(v.size());
        
    
    }

}
